package com.ihr360.job.core.job.builder;

import com.ihr360.job.core.Step;

public class JobBuilder extends JobBuilderHelper<JobBuilder>{
    /**
     * Create a new builder for a job with the given name.
     *
     * @param name the name of the job
     */
    public JobBuilder(String name) {
        super(name);
    }

    /**
     * Create a new job builder that will execute a step or sequence of steps.
     *
     * @param step a step to execute
     * @return a {@link SimpleJobBuilder}
     */
    public SimpleJobBuilder start(Step step) {
        return new SimpleJobBuilder(this).start(step);
    }

}